<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>现在时间是?</title>
</head>
<style>
    body{
        background-color: black;
    }
    h1{
        margin: 10px auto;
        color: #fff;
        position: absolute;
        top: 5vw;
        left: 65vh;
        font-size: 7rem;
    }
    .items{
        position: absolute;
        top: 10vw;
        left: 55vh;
        margin: 150px auto;
        width: 800px;
        height: 450px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        color:#fff;
    }
    .item{
        width: 30%;
        height: 90%;
        /* background-color: #000; */
        text-align: center;
        border: 3px solid #fff;
        transition: box-shadow 0.3s ease;
        transition: all .5s;
        border-radius: 0;
    }
    .item > .text{
        line-height: 200px;
        padding-top: 80px;
    }
    .h,.m,.s{
        transition: all .5s;
        font-size: 2rem;
        font-family: '楷体';
        opacity: 0;
    }
    .fitem:hover{
        border: 3px solid rebeccapurple;
        border-radius: 30px 0 30px 0;
    }
    .fitem:hover > .text{
        font-size: 9rem;
        color: rebeccapurple;
    }
    .fitem:hover > .h{opacity: 1;}
    .sitem:hover{
        border: 3px solid rgb(32, 53, 219);
        border-radius: 30px 30px 0 0;
    }
    .sitem:hover > .m{opacity: 1;}
    .sitem:hover > .text{
        font-size: 9rem;
        color: rgb(32, 53, 219);
    }
    .titem:hover{
        border: 3px solid rgb(165, 37, 63);
        border-radius: 0 30px 0 30px;
    }
    .titem:hover > .s{opacity: 1;}
    .titem:hover > .text{
        font-size: 9rem;
        color: rgb(165, 37, 63);
    }
    .ge{
        font-size: 7rem;
    }
    .item > .text {
        font-size: 7rem;
        color: #fff;
        transition: all .5s;
    }
</style>
<body>

    <!-- 作者：王晓政 （小政同学）
         邮箱：3415278922@qq.com 
         时间：2021年09月06日
         博客：http://halo.axz99.cn/
         欢迎大家来访问我的博客！
    -->
    <canvas id="canvad"></canvas>
     <!-- 时钟 -->
     <h1>现在时间是？</h1>
     <div class="items">
        <!-- 现在时间 -->
        <div class="item fitem">
            <div class="text hour">01</div>
            <div class="h">时</div>
        </div>
        <!-- <span class="ge">:</span> -->
        <div class="item sitem">
            <div class="text minute">02</div>
            <span class="m">分</span>
        </div>
        <!-- <span class="ge">:</span> -->
        <div class="item titem">
            <div class="text second">03</div>
            <span class="s">秒</span>
        </div>
        <script src="./newTime.js"></script>
        <script src="./lizi.js"></script>
    <script>
        
    </script>
</body>
</html>